//
//  BaseKeyBoardViewController.m
//  IOSBase
//
//  Created by chenliang on 14-8-11.
//  Copyright (c) 2014年 chenliang. All rights reserved.
//

#import "BaseKeyBoardViewController.h"
#import "DaiDodgeKeyboard.h"


@interface BaseKeyBoardViewController ()

@end

@implementation BaseKeyBoardViewController

-(void)viewWillAppear:(BOOL)animated {
	[super viewWillAppear:animated];
	keyBoardController=[[UIKeyboardViewController alloc] initWithControllerDelegate:self];
	[keyBoardController addToolbarToKeyboard];
}

-(void)viewWillDisappear:(BOOL)animated {
	[super viewWillDisappear:animated];
	//MCRelease(keyBoardController);
}


#pragma - UIKeyboardViewController delegate methods

- (void)alttextFieldDidEndEditing:(UITextField *)textField {
   // NSLog(@"%@", textField.text);
}

- (void)alttextViewDidEndEditing:(UITextView *)textView {
   // NSLog(@"%@", textView.text);
}

@end
